package com.genesis.yunnanji.bean;

import com.zhouyou.http.model.ApiResult;

/**
 * 创建日期：2018/10/9 000910:42
 * 作者：Kite
 * 描述：
 */
public class BaseBean<T> extends ApiResult<T> {

    String message;
    int status;
    T result;

    @Override
    public int getCode() {
        return status;
    }

    @Override
    public void setCode(int code) {
        status = code;
    }

    @Override
    public String getMsg() {
        return message;
    }

    @Override
    public void setMsg(String msg) {
        message = msg;
    }

    @Override
    public T getData() {
        return result;
    }

    @Override
    public void setData(T data) {
        result = data;
    }

    @Override
    public boolean isOk() {
        return status == 200 ? true : false;
    }
}
